package lapsnake.model.expr;

import lapsnake.model.*;
import lapsnake.model.data.*;
import lapsnake.py.ast.ASTHelperFactory; import java.beans.PropertyVetoException;

import org.python.antlr.ast.*;

/**Wrapper class with helper functions for Dict nodes*/
public class LapDict extends LapExpression {
	ChildList<LapExpression> keys = new ChildList<>(this, LapExpression.class, true);
	ChildList<LapExpression> values = new ChildList<>(this, LapExpression.class, true);

    public LapDict(PyAST pyAST, ChildField<? super LapDict> parent, Dict node) throws PropertyVetoException {
	super(pyAST, parent, node);
	ASTHelperFactory.makeHelpers(pyAST, keys, node.getInternalKeys());
	ASTHelperFactory.makeHelpers(pyAST, values, node.getInternalValues());
	buildTextNodes(node);
    }
}
